-
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
03c3d52
commit 277e53f
Showing
13 changed files
with
275 additions
and
60 deletions.
There are no files selected for viewing
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
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
40 changes: 40 additions & 0 deletions
40
app/src/main/java/ap/yadora/richadowonosas/fmdslst/activity/LicenseActivity.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package ap.yadora.richadowonosas.fmdslst.activity; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.appcompat.widget.Toolbar; | ||
|
||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import ap.yadora.richadowonosas.fmdslst.R; | ||
|
||
public class LicenseActivity extends AppCompatActivity { | ||
|
||
private Toolbar toolbar; | ||
private TextView licenseText; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_license); | ||
|
||
bindViews(); | ||
|
||
setSupportActionBar(toolbar); | ||
setLicenseText(); | ||
} | ||
|
||
private void bindViews() { | ||
toolbar = findViewById(R.id.toolbarLicense); | ||
licenseText = findViewById(R.id.licenseContent); | ||
} | ||
|
||
private void setLicenseText() { | ||
licenseText.setText(getText(R.string.content_license)); | ||
} | ||
|
||
public void onClickBackButton(View view) { | ||
finish(); | ||
} | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".activity.LicenseActivity"> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/tairitsuLight" | ||
android:backgroundTint="@color/tairitsuLight" | ||
android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
||
<TableRow | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1"> | ||
|
||
<ImageButton | ||
android:id="@+id/licenseBackButton" | ||
style="@style/Widget.AppCompat.ImageButton" | ||
android:layout_width="56dp" | ||
android:layout_height="56dp" | ||
android:layout_gravity="start|center_vertical" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginEnd="8dp" | ||
android:background="?android:attr/selectableItemBackgroundBorderless" | ||
android:backgroundTint="@color/tairitsuLight" | ||
android:clickable="true" | ||
android:contentDescription="@string/selection_back" | ||
android:focusable="true" | ||
android:onClick="onClickBackButton" | ||
android:padding="12dp" | ||
android:scaleType="centerCrop" | ||
android:theme="@style/Ripple" | ||
app:srcCompat="@drawable/icon_normal_back" /> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbarLicense" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/colorPrimary" | ||
android:minHeight="?attr/actionBarSize" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:theme="?attr/actionBarTheme" /> | ||
|
||
</TableRow> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<include layout="@layout/content_license" /> | ||
|
||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
tools:context=".activity.LicenseActivity" | ||
tools:showIn="@layout/activity_license"> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1"> | ||
|
||
<TextView | ||
android:id="@+id/licenseContent" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="8dp" | ||
android:scrollbars="vertical" | ||
android:textAlignment="viewStart" | ||
android:textSize="14sp" | ||
android:typeface="normal" /> | ||
</ScrollView> | ||
|
||
<Button | ||
android:id="@+id/licenseConfirmButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:backgroundTint="@color/tairitsuLight" | ||
android:onClick="onClickBackButton" | ||
android:text="@string/title_confirm" | ||
android:textColor="@android:color/white" /> | ||
</LinearLayout> |
Oops, something went wrong.