Skip to content

Commit

Permalink
M.A.O: Add contributor layout
Browse files Browse the repository at this point in the history
Also improve another layout and bump to v1.3

Almost near to stable release :)
  • Loading branch information
Nicklas373 committed May 15, 2019
1 parent 6151f6a commit 11751f4
Show file tree
Hide file tree
Showing 12 changed files with 393 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.2"
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".audio_conf"/>
<activity android:name=".stats_app"></activity>
<activity android:name=".audio_conf" />
<activity android:name=".audio_stats" />
<activity
android:name=".MainActivity"
Expand Down
13 changes: 12 additions & 1 deletion app/src/main/java/com/hana/mao/about.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class about extends Fragment {

private Button About;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -52,5 +53,15 @@ public void onClick(View v)
startActivity(intent);
}
});

About = (Button) view.findViewById(R.id.app_details);

About.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), stats_app.class);
startActivity(intent);
}
});
}
}
68 changes: 68 additions & 0 deletions app/src/main/java/com/hana/mao/stats_app.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.hana.mao;

import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class stats_app extends AppCompatActivity {

public Button back;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_stats_app);

setTitle("Contributor");

ImageView telegram = (ImageView) findViewById(R.id.telegram);
telegram.setOnClickListener(new View.OnClickListener() {

public void onClick(View v)
{
Uri uri = Uri.parse("https://t.me/Nicklas373");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
});

ImageView git = (ImageView) findViewById(R.id.github);
git.setOnClickListener(new View.OnClickListener() {

public void onClick(View v)
{
Uri uri = Uri.parse("https://github.com/Nicklas373");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
});


ImageView xda = (ImageView) findViewById(R.id.xda);
xda.setOnClickListener(new View.OnClickListener() {

public void onClick(View v)
{
Uri uri = Uri.parse("https://forum.xda-developers.com/member.php?u=5608002");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
});

Button back = (Button) findViewById(R.id.back);

back.setOnClickListener(new View.OnClickListener(){

@Override
public void onClick(View v){
Intent i = new Intent(stats_app.this, MainActivity.class);
startActivity(i);
}
});

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-v24/second_cont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-v24/telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-v24/xda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_audio_stats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@

<TextView
android:id="@+id/textView4"
android:layout_width="220dp"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_marginVertical="72dp"
android:layout_marginLeft="170dp"
android:layout_marginLeft="140dp"
android:text="@string/audio_flags_current"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textColor="#000000" />
Expand Down
Loading

0 comments on commit 11751f4

Please sign in to comment.