forked from HotBitmapGG/CreditSesameRingView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f8cafa
commit b01320c
Showing
3 changed files
with
146 additions
and
67 deletions.
There are no files selected for viewing
23 changes: 22 additions & 1 deletion
23
app/src/main/java/io/netopen/hotbitmapgg/creditsesameringview/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.