-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
9 changed files
with
189 additions
and
19 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
67 changes: 67 additions & 0 deletions
67
app/src/main/java/com/firelotus/meteorite/ui/FeedBackActivity.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,67 @@ | ||
package com.firelotus.meteorite.ui; | ||
|
||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.net.Uri; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import com.firelotus.meteorite.R; | ||
import com.firelotus.meteoritelibrary.base.BaseActivity; | ||
|
||
import butterknife.BindView; | ||
|
||
/** | ||
* Created by firelotus on 2017/12/31. | ||
*/ | ||
|
||
public class FeedBackActivity extends BaseActivity implements View.OnClickListener{ | ||
@BindView(R.id.tv_issues) | ||
public TextView issues; | ||
|
||
@BindView(R.id.tv_qq) | ||
public TextView qq; | ||
|
||
@BindView(R.id.tv_email) | ||
public TextView email; | ||
|
||
public static void start(Context mContext) { | ||
Intent intent = new Intent(mContext, FeedBackActivity.class); | ||
mContext.startActivity(intent); | ||
} | ||
@Override | ||
protected int getLayoutId() { | ||
return R.layout.activity_feedback; | ||
} | ||
|
||
@Override | ||
protected void initView() { | ||
setToolBarTitle("问题反馈"); | ||
issues.setOnClickListener(this); | ||
qq.setOnClickListener(this); | ||
email.setOnClickListener(this); | ||
} | ||
|
||
@Override | ||
protected void initData() { | ||
|
||
} | ||
|
||
@Override | ||
public void onClick(View v) { | ||
switch (v.getId()){ | ||
case R.id.tv_issues: | ||
WebActivity.loadUrl(v.getContext(),"https://github.com/firelotus/Meteorite/issues","Issues"); | ||
break; | ||
case R.id.tv_qq: | ||
String url = "mqqwpa://im/chat?chat_type=wpa&uin=271512473"; | ||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); | ||
break; | ||
case R.id.tv_email: | ||
Intent data = new Intent(Intent.ACTION_SENDTO); | ||
data.setData(Uri.parse("mailto:[email protected]")); | ||
startActivity(data); | ||
break; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
<LinearLayout | ||
android:id="@+id/ll_version" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:orientation="vertical" | ||
> | ||
<ImageView | ||
android:layout_width="230px" | ||
android:layout_height="230px" | ||
android:layout_gravity="center" | ||
android:src="@drawable/head" | ||
/> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="当前版本V1.0"/> | ||
</LinearLayout> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:text="about"/> | ||
</LinearLayout> | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/ll_version" | ||
android:layout_marginTop="60px" | ||
android:gravity="center" | ||
android:text="O(∩_∩)O图标还不能自给自足,见谅!很高兴您能关注,如果感到满意就Star一下吧,由于时间有限,部分功能还在完善中..."/> | ||
|
||
</RelativeLayout> |
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,85 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="10dp" | ||
android:text="Issues" | ||
android:textColor="@color/colorTabText" | ||
android:textSize="13sp" /> | ||
|
||
|
||
<TextView | ||
android:id="@+id/tv_issues" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:clickable="true" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="12dp" | ||
android:text="Meteorite" | ||
android:textSize="16sp" /> | ||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1px" | ||
android:background="@color/cardview_dark_background" | ||
android:paddingLeft="10px" | ||
android:paddingRight="10px"/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="10dp" | ||
android:text="联系我" | ||
android:textColor="@color/colorTabText" | ||
android:textSize="13sp" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_qq" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:clickable="true" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="12dp" | ||
android:text="QQ" | ||
android:textSize="16sp" /> | ||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1px" | ||
android:background="@color/cardview_dark_background" | ||
android:paddingLeft="10px" | ||
android:paddingRight="10px"/> | ||
<TextView | ||
android:id="@+id/tv_email" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:clickable="true" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="12dp" | ||
android:text="Email" | ||
android:textSize="16sp" /> | ||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1px" | ||
android:background="@color/cardview_dark_background" | ||
android:paddingLeft="10px" | ||
android:paddingRight="10px"/> | ||
</LinearLayout> | ||
</LinearLayout> |
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