Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HotBitmapGG committed Sep 1, 2016
1 parent 1f8cafa commit b01320c
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 67 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
package io.netopen.hotbitmapgg.creditsesameringview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import io.netopen.hotbitmapgg.view.CreditSesameRingView;

public class MainActivity extends AppCompatActivity
{

private Button mButton;

private CreditSesameRingView mCreditSesameRingView;

@Override
protected void onCreate(Bundle savedInstanceState)
{

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

mButton = (Button) findViewById(R.id.btn);
mCreditSesameRingView = (CreditSesameRingView) findViewById(R.id.credit_sesame_ring_view);
mButton.setOnClickListener(new View.OnClickListener()
{

@Override
public void onClick(View view)
{

mCreditSesameRingView.setSesameData(670);
}
});
}
}
8 changes: 8 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@


<io.netopen.hotbitmapgg.view.CreditSesameRingView
android:id="@+id/credit_sesame_ring_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />


<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="评估信用" />


</RelativeLayout>
Loading

0 comments on commit b01320c

Please sign in to comment.