From aa4b6c23bbc7d34052f46223e6f05041cfe59849 Mon Sep 17 00:00:00 2001 From: Kr328 <39107975+Kr328@users.noreply.github.com> Date: Tue, 26 Nov 2019 23:30:51 +0800 Subject: [PATCH] proxy activity --- .../com/github/kr328/clash/ProxyActivity.kt | 16 +++++++++- app/src/main/res/layout/adapter_proxy.xml | 29 +++++++++++++++++++ .../main/res/layout/adapter_proxy_group.xml | 16 ++++++++-- 3 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/layout/adapter_proxy.xml diff --git a/app/src/main/java/com/github/kr328/clash/ProxyActivity.kt b/app/src/main/java/com/github/kr328/clash/ProxyActivity.kt index 692ac78..1cd96a5 100644 --- a/app/src/main/java/com/github/kr328/clash/ProxyActivity.kt +++ b/app/src/main/java/com/github/kr328/clash/ProxyActivity.kt @@ -1,5 +1,19 @@ package com.github.kr328.clash -class ProxyActivity : BaseActivity() { +import android.os.Bundle +import androidx.recyclerview.widget.LinearLayoutManager +import androidx.recyclerview.widget.RecyclerView +class ProxyActivity : BaseActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + val content = RecyclerView(this) + + setContentView(content) + + content.layoutManager = LinearLayoutManager(this) + + + } } \ No newline at end of file diff --git a/app/src/main/res/layout/adapter_proxy.xml b/app/src/main/res/layout/adapter_proxy.xml new file mode 100644 index 0000000..0b91e8a --- /dev/null +++ b/app/src/main/res/layout/adapter_proxy.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/adapter_proxy_group.xml b/app/src/main/res/layout/adapter_proxy_group.xml index aa1b0cb..3e07262 100644 --- a/app/src/main/res/layout/adapter_proxy_group.xml +++ b/app/src/main/res/layout/adapter_proxy_group.xml @@ -1,12 +1,22 @@ - + + + - - \ No newline at end of file + \ No newline at end of file