mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-17 16:07:48 +00:00
About/My blog/Leanote Explore
This commit is contained in:
@@ -80,12 +80,17 @@ public class AboutActivity extends BaseActivity {
|
||||
|
||||
@OnClick(R.id.ll_github)
|
||||
void clickedGithub() {
|
||||
OpenUtils.openUrl(this, "https://github.com/houxg/Leamonax");
|
||||
OpenUtils.openUrl(this, "https://github.com/leanote/leanote-android");
|
||||
}
|
||||
|
||||
@OnClick(R.id.ll_feedback)
|
||||
void clickedFeedback() {
|
||||
OpenUtils.openUrl(this, "https://github.com/houxg/Leamonax/issues");
|
||||
OpenUtils.openUrl(this, "https://github.com/leanote/leanote-android/issues");
|
||||
}
|
||||
|
||||
@OnClick(R.id.thanks)
|
||||
void clickedThanks() {
|
||||
OpenUtils.openUrl(this, "https://github.com/leanote/leanote-android/graphs/contributors");
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -42,6 +42,7 @@ import org.houxg.leamonax.model.User;
|
||||
import org.houxg.leamonax.service.AccountService;
|
||||
import org.houxg.leamonax.service.NotebookService;
|
||||
import org.houxg.leamonax.utils.DisplayUtils;
|
||||
import org.houxg.leamonax.utils.OpenUtils;
|
||||
import org.houxg.leamonax.widget.AlphabetDrawable;
|
||||
import org.houxg.leamonax.widget.TriangleView;
|
||||
|
||||
@@ -506,4 +507,21 @@ public class Navigation {
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@OnClick(R.id.rl_blog)
|
||||
void clickedMyBlog() {
|
||||
Account current = AccountService.getCurrent();
|
||||
String host = current.getHost();
|
||||
if (host == null || host.equals("")) {
|
||||
host = "https://leanote.com";
|
||||
}
|
||||
|
||||
host = host.replace("https://", "http://");
|
||||
OpenUtils.openUrl(mActivity, host + "/blog/" + current.getUserId());
|
||||
}
|
||||
|
||||
@OnClick(R.id.rl_explore)
|
||||
void clickedExplore() {
|
||||
OpenUtils.openUrl(mActivity, "http://lea.leanote.com");
|
||||
}
|
||||
}
|
||||
|
BIN
app/src/main/res/drawable-xxhdpi/ic_blog.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_blog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_leanote.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_leanote.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
@@ -80,6 +80,7 @@
|
||||
<include layout="@layout/divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/thanks"
|
||||
style="@style/SettingsPanel"
|
||||
android:orientation="vertical">
|
||||
|
||||
@@ -93,7 +94,7 @@
|
||||
style="@style/SettingsStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/leanote" />
|
||||
android:text="https://github.com/houxg/Leamonax" />
|
||||
|
||||
<TextView
|
||||
style="@style/SettingsStatus"
|
||||
|
@@ -191,6 +191,60 @@
|
||||
|
||||
<include layout="@layout/divider" />
|
||||
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_blog"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_blog" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="48dp"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:text="@string/my_blog"
|
||||
android:textColor="@color/primary_text_light"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_explore"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_leanote" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="48dp"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:text="@string/explore"
|
||||
android:textColor="@color/primary_text_light"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_settings"
|
||||
android:layout_width="match_parent"
|
||||
@@ -217,7 +271,7 @@
|
||||
android:textColor="@color/primary_text_light"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_about"
|
||||
android:layout_width="match_parent"
|
||||
|
@@ -106,4 +106,6 @@
|
||||
<string name="leanote">蚂蚁笔记</string>
|
||||
<string name="conflict_occurs">糟糕,笔记冲突</string>
|
||||
<string name="host_example">登录接口地址将会是:\n%s/api/login</string>
|
||||
<string name="my_blog">我的博客</string>
|
||||
<string name="explore">蚂蚁笔记探索</string>
|
||||
</resources>
|
@@ -108,5 +108,6 @@
|
||||
<string name="generate_random_note">Generate random note</string>
|
||||
<string name="conflict_occurs">Oops! Conflicts occurs</string>
|
||||
<string name="host_example">For example, login api will be:\n%s/api/login</string>
|
||||
|
||||
<string name="my_blog">My Blog</string>
|
||||
<string name="explore">Leanote Explore</string>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user